
FROM registry.workspace.me/hyperf:build

ENV COMPOSER_CACHE_DIR .composer

COPY . /opt/www

RUN composer install --no-dev -o

EXPOSE 9501

ENTRYPOINT ["php", "/opt/www/bin/hyperf.php", "start"]